package org.example.Servlet.Impl;

import org.example.Dao.UserDao;
import org.example.Servlet.UserServlet;
import org.example.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServletImpl implements UserServlet {

    @Autowired
    private UserDao userDao;
    @Override
    public User selectall(Integer username) {
        return userDao.select(username);
    }

    @Override
    public List<User> selectall() {
       return userDao.selectall();
    }


}
